<template>
  <div>
      <el-date-picker 
      v-model="value" 
      type="datetime" 
      placeholder="请选择日期"
      @change="handleChange"
      value-format="yyyy-mm-dd hh:mm:ss"
      ></el-date-picker>
  </div>
</template>

<script>
export default {

    name:"DatePicker",
    methods:{
        handleChange(value){
            console.log(value);
        }
    },
    data(){
        return{
            value:""
        }
    }
}
</script>

<style>

</style>